package com.victor.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.victor.entity.GlcommentsPhoto;
@Mapper
public interface GlcommentsPhotoDao {
    int deleteByPrimaryKey(Integer id);
    /**
     * 添加评论图片
     * @param record
     * @return
     */
    boolean insertSelective(GlcommentsPhoto record);

    GlcommentsPhoto selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(GlcommentsPhoto record);
    /**
     * 根据cid查询
     * @param cid
     * @return
     */
    @Select({"select * from glcommentsphoto where cid=#{cid}"})
    List<GlcommentsPhoto> selByCid(String cid);
}